package com.aaa.day1107.demo05;

/**
 * @author ${崔灿}
 * @date 2022/11/08 10:04
 **/

public class BJBFactory {
    public static BJB getBJB(String type){
        if(type.equals("联想")){
            return new LianXiang();
        }else if (type.equals("神州")){
            return new ShenZhou();
        }
    return null;
    }
}
